package com.zxc.common.vo;

import com.zxc.common.enums.ShoppingEnum;
import lombok.Data;

/*
* 封装异常信息的值对象
* */
@Data
public class ExceptionVo {

    public ExceptionVo(ShoppingEnum shoppingEnum) {
        this.code = shoppingEnum.getCode();
        this.msg = shoppingEnum.getMsg();
        this.time = System.currentTimeMillis();//时间戳
    }

    private Integer code;//状态码
    private String msg;//消息内容
    private Long time;//时间戳
}
